/**
 * 
 */
package metalink.admin;

import java.util.ArrayList;

import model.admin.HostelMo;

import vo.mixed.HostelStudentVo;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Sony
 *
 */

public class HostelRooms extends ActionSupport{
	ArrayList<HostelStudentVo> studentDetailsList;
	int residential_id;
public String execute()
{
	studentDetailsList=new ArrayList<HostelStudentVo>();
	HostelMo mo = new HostelMo();
	//System.out.println("res id :"+residential_id);
	try {
		studentDetailsList=mo.getAllStudentsFromHostels(residential_id);
	} catch (Exception e) {
		addActionError(e.getMessage());
	}
	return SUCCESS;
}
public ArrayList<HostelStudentVo> getStudentDetailsList() {
	return studentDetailsList;
}
public void setStudentDetailsList(ArrayList<HostelStudentVo> studentDetailsList) {
	this.studentDetailsList = studentDetailsList;
}
public int getResidential_id() {
	return residential_id;
}
public void setResidential_id(int residential_id) {
	this.residential_id = residential_id;
}
}
